package com.mxpio.erp.common.plm.service;

import com.mxpio.erp.common.plm.entity.ProjectPauseOperation;
import com.mxpio.erp.common.plm.entity.ProjectRecoveryOperation;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.security.service.BaseService;

import java.util.Map;

/**
 * @Date: 2024-2-19
 * @Description: 项目恢复申请操作
 * @Version 1.0.0
 * @author qb
 */
public interface ProjectRecoveryOperationService extends BaseService<ProjectRecoveryOperation> {
    /**
     * 恢复项目
     * @param recoveryOperation
     */
    Result<?> recover(ProjectRecoveryOperation recoveryOperation);

    Result<?> saveAll(String key, String loginUsername, String businessKey, Map<String, Object> properties);

    /**
     * 查询项目正在审批的恢复申请单
     * @param bizNo
     * @return
     */
    ProjectRecoveryOperation getOne(String bizNo);

    Result<?> getDetail(String bizNo);
}
